<template>
  <div class="flex">
    <PdfView
      :class="'w-full'"
      :docId="docId"
      @page-content-change="handlePageContentChange"
    />
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRoute } from 'vue-router';
import PdfView from './section/pdfView.vue'

const route = useRoute()
const docId = ref(parseInt(route.params.id))
const currentPageContent = ref('')

const handlePageContentChange = (content) => {
  currentPageContent.value = content
}

</script>
